package com.echo.util.impl;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegularJudge {
	
	/**
	 * 手机号正则表达式
	 * 
	 * @param mobiles
	 * @return
	 */
	public static boolean isMobileNO(String mobiles) {
		Pattern p = Pattern.compile("^((13[0-9])|(14[5,7,9])|(15[^4,\\D])|(18[0,5-9])|(17[0,1,3,5-8]))\\d{8}$");

		Matcher m = p.matcher(mobiles);
		if (m.matches()) {
			return true;
		}
		return false;

	}

	public static void main(String[] args) {
		System.out.println(isMobileNO("15515820852"));
	}

}
